print('1.字符串的替换')
s = 'hello Python'
print(s.replace('Python', 'Java'))
s1 = "hello Python Python Python"
print(s1.replace('Python', 'Java', 2))
print()

print('2.字符串的连接')
lst = ['hello' 'Python' 'Java']
print('|'.join(lst))
print(''.join(lst))
t = ('hello' 'Python' 'Java')
print(''.join(t))
print('*'.join('Python'))